package com.meteor.raft.masterelection;

import com.meteor.raft.persistent.RaftPeer;
import org.springframework.stereotype.Service;

/**
 * @author gang.wang1903@xiaobao100.cn
 * @Date: 2019/7/16 9:08 AM
 */
public interface ElectionService {


    /**
     * 发送投票
     */
    public void sendVote();


    /**
     * 接收投票
     * @param remote
     * @return
     */
    public RaftPeer receivedVote(RaftPeer remote);

}
